package com.example.demo.pojo.tree;

import com.example.demo.pojo.entity.ExamFile;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: 文件树
 * @author: fjh
 */
@Data
public class TreeExamFile {
    ExamFile examFile;
    List<TreeExamFile> children=new ArrayList<>();

    public void addChild(TreeExamFile child) {
        if (child != null) {
            this.children.add(child);
        }
    }
}
